package com.chenl.provider.DEMOS.WebService;

import cn.hutool.json.JSONObject;
import cn.hutool.json.XML;
import com.chenl.provider.DTO.UserInfo;
import org.springframework.stereotype.Component;

import javax.jws.WebService;

@Component
@WebService(serviceName="lyService",
        targetNamespace="http://BasicDataPullApi.API.WebService.DEMOS.provider.chenl.com/",
        endpointInterface ="com.chenl.provider.DEMOS.WebService.BasicDataPullApi")
public class BasicDataPullApiController implements BasicDataPullApi {
    @Override
    public UserInfo Ws_zt_bas(String reqParams) {
        System.out.println("入参餐778:"+reqParams);
        JSONObject jsonObject = XML.toJSONObject(reqParams);
        System.out.println("JSON:"+jsonObject.toString());
        UserInfo userInfo=new UserInfo();
        userInfo.setName("张三");
        userInfo.setPhone("17720885142");
        userInfo.setAge("33355");
        return userInfo;
    }
}